import $http from "../http"

// 获取考勤表格
export const getAttendanceTable = () => $http.get("/getAttendanceTable");

// 获取考勤列表
export const getAttendance = (params) => $http.post("/getAttendance", params);

// 新增考勤记录
export const createAttendance = (params) => $http.post('/createAttendance', params);

// 修改考勤记录
export const updateAttendance = (params) => $http.put('/updateAttendance', params);

// 删除考勤记录
export const deleteAttendance = (params) =>
    $http.post('/deleteAttendance', params);

//获取考勤信息详细
export const getAttendanceDetail = params => $http.get(`/getAttendanceDetail/${params}`);